//
//  ResponseMessage.h
//  rmipclient
//
//  Created by bob on 16/1/5.
//  Copyright © 2016年 bob. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseHeader.h"
#import "ResponseBody.h"

@interface ResponseMessage : NSObject
@property(nonatomic, strong) NSString        *jsontext;

@property(nonatomic, strong) ResponseHeader  *header;
@property(nonatomic, strong) ResponseBody    *body;

///解析响应消息对象
-(BOOL)parse:(NSString*)s;
///解析字典对象
-(BOOL)parseFromDictionary:(NSMutableDictionary*)dict;
///解析响应消息对象
-(BOOL)parseFromNSData:(NSData*)data;

///转换JSON字串
-(NSString*)toJSON;

@end
